<!DOCTYPE html>
<html lang="en">
<head>
    <title>我的项目</title>
</head>
<body>
<div class="page-container">
    <div class="page-content">
        <div class="container">
            <div class="page-bar" style="background-color: #fff;margin-bottom: 5px;margin-top: 10px;">
                <ul class="page-breadcrumb">
                    <li>
                        <i class="glyphicon glyphicon-cog"></i>
                        <span>我参与的项目</span>
                    </li>
                </ul>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                              <span class="caption-subject font-green-sharp bold uppercase">
                              <i class="fa fa-gift"></i> 项目列表
                              </span>
                            </div>
                            <div class="actions btn-set text-right">
                                <button class="btn green btn-circle" data-toggle="modal" data-target="#myModal"
                                        onclick="doAddSch()">
                                    <a class="fa fa-plus" style="text-decoration:none;color: #FFFFFF">汇报进度</a>
                                </button>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <table id="projectTable"
                                   class="table table-striped table-bordered table-hover"
                                   data-toggle="table"
                                   data-method="post"
                                   data-content-type="application/x-www-form-urlencoded"
                                   data-query-params="queryParams"
                                   data-pagination="true"
                                   data-click-to-select="true"
                                   data-side-pagination="server"
                                   data-page-list="[10, 20, 50, 200]"
                                   data-search-align = "left"
                            >
                                <thead>
                                <tr>
                                    <th data-radio="true" checkbox="true"></th>
                                    <th data-field="pro_id">项目编码</th>
                                    <th data-field="pro_name">项目名称</th>
                                    <th data-field="state">项目状态</th>
                                    <th data-field="has_scheduled">今日汇报状态</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                              <span class="caption-subject font-green-sharp bold uppercase">
                              <i class="fa fa-gift"></i> 进度汇报历史
                              </span>
                            </div>
                            <div class="actions btn-set text-right">
                                <button class="btn red btn-circle"
                                        onclick="recall()">
                                    <a class="fa fa-times" style="text-decoration:none;color: #FFFFFF">撤销当前记录</a>
                                </button>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <table id="scheduleTable"
                                   class="table table-striped table-bordered table-hover"
                                   data-toggle="table"
                                   data-method="post"
                                   data-content-type="application/x-www-form-urlencoded"
                                   data-query-params="queryParams"
                                   data-pagination="true"
                                   data-click-to-select="true"
                                   data-side-pagination="server"
                                   data-page-list="[10, 20, 50, 200]"
                                   data-search-align = "left"
                            >
                                <thead>
                                <tr>
                                    <th data-radio="true" checkbox="true"></th>
                                    <th data-field="pro_id">项目编码<label style="min-width:40px;"></label></th>
                                    <th data-field="sch_date" data-formatter="dateFormatter">汇报日期<label style="min-width:40px;"></label></th>
                                    <th data-field="has_scheduled">状态<label style="min-width:40px;"></label></th>
                                    <th data-field="sch_describe" >汇报内容<label style="min-width:200px;"></label></th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true">×
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                请填写进度汇报：
                            </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form">
                                <form action="javascript:;" id="updateForm" class="form-horizontal">
                                    <div class="row">
                                        <div class="form-group">
                                            <div class="col-md-1 col-sm-1 col-xs-1"></div>
                                            <div class="col-md-10 col-sm-10 col-xs-10">
                                                <div class="input-icon right">
                                                    <i class="fa"></i>
                                                    <textarea id="schDescribe" name="schDescribe" class="form-control" rows="6"  placeholder="请输入进度汇报内容"></textarea>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <input class="hidden" name="proIdActive" id="proIdActive"/>
                                </form>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default"
                                    data-dismiss="modal">关闭
                            </button>
                            <button id="submitBtn" type="button" class="btn btn-primary"onclick="submitSch()">
                                确认汇报
                            </button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal-dialog -->
            </div>
        </div>
    </div>
</div>
<script src="${basePath}/static/module/projectManage/myProject.js${jsResourceVersion}"></script>
</body>
</html>